﻿using Games.Common;
using Games.Data;

namespace Games.TwentyFive
{
    class TwentyFiveRecord : GameRecords
    {
        public override Record Convert()
        {
            var level = "加油";
            if(Duration < 10)
            {
                level = "天才";
            }
            else if(Duration < 12)
            {
                level = "杰出";
            }
            else if(Duration < 15)
            {
                level = "优秀";
            }
            return new Record
            {
                Level = level,
                Message = $"用时 {Duration:N3} 秒",
                TimeString = CreateTime.ToString("yyyy-MM-dd HH:mm")
            };
        }
    }
}
